extends Node

@export var 当前GUI:CanvasLayer
@export var GUI列表:Array[CanvasLayer]

func _input(event: InputEvent) -> void:
	if event.is_action_released("背包"):
		切换GUI(GUI列表[1])
	

func 切换GUI(GUI索引:CanvasLayer):
	for i in GUI列表:
		if i != GUI索引:
			i.visible = false
		else :
			i.visible = true
